package cn.wolfcode.trip.app.controller;


import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;
import cn.wolfcode.trip.base.service.ITravelCommendService;
import cn.wolfcode.trip.base.service.ITravelService;
import cn.wolfcode.trip.base.util.JSONResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 用户资源控制器
 */
@RestController
@RequestMapping("/travelCommends")
public class TravelCommendController {

    @Autowired
    private ITravelCommendService commendService;

    @GetMapping
    public PageInfo listAll(TravelCommendQueryObject qo){
        return commendService.queryForAppList(qo);
    }
}
